package com.gdssoft.pdaweb.service.water;
/*
 *  捷达世软件（深圳）有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
*/
import java.io.File;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.gdssoft.core.command.QueryFilter;
import com.gdssoft.core.service.BaseService;
import com.gdssoft.pdaweb.model.water.PdaWaterList;

public interface PdaWaterListService extends BaseService<PdaWaterList>{
	/**
	 * 检查Excel表的格式
	 * @author F3230006
	 * @param file
	 * @return error PdaAmMeterList List
	 */
	public List<PdaWaterList> checkXLSFormat(String importMonth,File file);

	/**
	 * 查询
	 * @param pdaAmMeterList
	 * @return
	 */
	public List<PdaWaterList> query(PdaWaterList pdaWaterList,int start,int to);
	
	/**
	 * 查数
	 * @author F3229233 2013-1-15 下午3:36:49 
	 * @param pdaAmMeterList
	 * @return
	 */
	public int queryCount(PdaWaterList pdaWaterList);
		
	
	/**
	 * 导出excel
	 * @author F3229233 2013-1-15 上午9:13:07 
	 * @param response HttpServletResponse
	 * @param pdaAmMeterList 生成依据
	 * @param user	操作人
	 */
	public void excelExport(HttpServletResponse response,
			PdaWaterList pdaWaterList,String user);
	
	/**
	 * 保存excel表的内容
	 * @param importMonth
	 * @param file
	 * @return
	 */
	public int saveExcel(String importMonth, File file);

	/**
	 * 检查am_id是否存在
	 * @author F3230006
	 * @param amId
	 * @return
	 */
	public boolean checkAmidExist(String amId);

	/**
	 * 检查记录是否存在
	 * @author F3230006
	 * @param amId
	 * @param importMonth
	 * @return
	 */
	public boolean recodExist(String amId, String importMonth);

	/**
	 * 检查是否异常
	 * @author F3230006
	 * @param amId
	 * @param degree
	 * @param month
	 * @return
	 */
	public String checkNomal(String amId, Long degree, String month);

	/**
	 * 获得电表读数
	 * @author F3230006
	 * @param amId
	 * @param month
	 * @return
	 */
	public Long getDegreeByTime(String amId,String month);


	/**
	 * 审核功能
	 * @param ids
	 * @param status
	 * @return
	 */
	public boolean check(String ids, String status);

	/**
	 * 利用本身框架的水表查询
	 * @author F3229233 2013-4-15 上午11:27:27 
	 * @param filter
	 * @param month 
	 * @return
	 */
	public List<PdaWaterList> getList(QueryFilter filter, String month);
	
	/**
	 * 显示计划任务
	 */
	public List<PdaWaterList> getPlanTask(String meterId,String month);

	public boolean saveFixedUsage(PdaWaterList pdaWaterList);
}


